//
//  landmarkCell.swift
//  SwiftUi
//
//  Created by xm on 28/08/2025.
//

import Foundation
import SwiftUICore
import SwiftUI
struct landmarkCell: View {
    let landmark: Landmark
    var body: some View {
        NavigationLink(destination: {LandmarkDetail(landmark: landmark) }) {
            
            Image(landmark.imageName).resizable() .frame(width: 50, height: 50).cornerRadius(5)
            VStack(alignment: .leading) {
                Text(landmark.name)
                Text(landmark.location)
                
            }
            
        }
    }
}
